<template>
  <div id="phonemode">
    <div class="inner-mode">
      <div class="topimg" :style="{'backgroundImage':`url(${details.picture})`}"></div>
      <div class="sharebtn">分享给好友</div>
      <div class="content-text">
        <p v-for="(item,index) in detailList" :class="item.title==1?'overstriking':''" :key='index'>{{item.text}}</p>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        //页面详情
        details: '',
        //活动详情
        detailList: ''
      }
    },
    props: {
      //内容详情区域
      datadetail: {
        type: Object,
        default: () => {
          return {}
        }
      }
    },
    mounted() {
      this.$bus.on("detaiData", async (val) => {
        //获取要编辑的id
        console.log(val)
        this.details = val
        //获取弹窗详情信息
        this.detailList = JSON.parse(val.content)
      });
    },
  }
</script>
<!-- https://oss.juchehulian.com/admin_driving/20210127/BVNxwy1611729928.png -->
<style lang='scss' scoped>
  #phonemode {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 340px;
    height: 700px;
    background: url('https://oss.juchehulian.com/admin_driving/20210127/Neoz9D1611713823.png') no-repeat;
    background-size: 100%;
    border-radius: 30px;
    overflow: hidden;

    .inner-mode {
      width: 308px;
      height: 544px;
      overflow-x: hidden;
      overflow-y: scroll;
      margin: 0 auto;
      margin-top: 75px;
      padding-bottom: 1px;
      background-color: #fff;

      &::-webkit-scrollbar {
        width: 0 !important;
      }

      .topimg {
        transition: all .3s;
        width: 100%;
        height: 300px;
        margin: 0 auto;
        position: relative;
        background: url('https://oss.juchehulian.com/admin_driving/20210127/RgRYoG1611719035.png') no-repeat;
        background-size: 100%;
      }

      .sharebtn {
        cursor: pointer;
        width: 150px;
        height: 38px;
        text-align: center;
        line-height: 38px;
        color: #fff;
        font-size: 15px;
        border-radius: 5px;
        background-color: #ff7c24;
        margin: 0 auto;
        margin-top: 30px;
        border: 1px solid #ff8d3c;
      }

      .content-text {
        margin: 40px auto 0;

        p {
          font-size: 14px;
          color: #444444;
          text-align: justify;
          line-height: 23px;
        }

        .overstriking {
          font-weight: bold;
          font-size: 15px;
        }

        ul {
          li {
            text-align: justify;
            font-size: 13px;
            color: #666;
            line-height: 20px;
          }
        }
      }
    }

  }
</style>
